import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-03-26
 * Time: 14:17
 */
public class Demo01 {
    public static void main(String[] args) {
        Student []student = new Student [4];
        student[0] = new Student("张三",70.50);
        student[1] = new Student("李四",80.50);
        student[2] = new Student("王五",67.55);
        student[3] = new Student("钱六",90.25);
        Arrays.sort(student);
        for (int i = 0; i < 4; i++) {
            System.out.println( student[i]);
        }
    }


}
